﻿using System.Collections.Generic;

namespace LinqBusinessObjectBuilder.Generator
{
    internal class TableDictionary : Dictionary<string, TableInfo>
    {
        public new TableInfo this[string key]
        {
            get
            {
                if (!ContainsKey(key))
                    Add(key, new TableInfo(key));

                return base[key];
            }
        }
    }
}